import React,{Component, PropTypes} from 'react';

/**
 * 图标组件
 */
export default class Icon extends Component{
	
	static defaultProps = {
		size: 'default'
	}

	static propTypes = {
		type: PropTypes.string.isRequired,
		size: PropTypes.oneOf(['small', 'default', 'large'])
	};

	render(){
		let {type, size} = this.props;
		return (<i className={`rd-icon rd-icon-${type} rd-icon-size-${size}`} />);
	}
}
